/*
 * @Author: chenr 526963089@qq.com
 * @Date: 2023-02-10 10:19:22
 * @LastEditors: chenr 526963089@qq.com
 * @LastEditTime: 2023-03-01 15:18:12
 * @Description:
 */
import { createApp } from 'vue';
import pinia from '@/stores/index';
import useAnt from '@/core/ant';
import App from './App.vue';
import router from './router';
import { createRouterGuard as createOfficialRouterGuard } from '@official/router/guard';
import { createRouterGuard as createPortalRouterGuard } from '@portal/router/guard';

/* mock数据 */
import '@/mock/index';
import './global.less'; // global style

const app = createApp(App);

useAnt(app);
app.use(pinia);
app.use(router);
createOfficialRouterGuard(); // 官网路由守卫
createPortalRouterGuard(); // 门户路由守卫

app.mount('#app');
